<template>
     <div class="news_member_wrap" v-if="newsMemberInfoShow">
    <div class="news_member_main">
      <div class="new_m_info_h">
        <div>群消息</div>
        <img @click="$emit('update:newsMemberInfoShow',false)" src="static/image/home/closeWindow.png" style="width: 14px; height: 14px; cursor: pointer" />
      </div>
      <div class="news_m_info">
        <div class="n_m_head">
          <img class="member_person" v-lazy="
                !$isNull(newsMemberInfo.head)
                  ? `${$store.state.headPathUrl}${newsMemberInfo.applyid}${newsMemberInfo.head}.PNG`
                  : `static/image/home/person_${
                      newsMemberInfo.gender == 1 ? 1 : 2
                    }.png`
              " />
          <div class="m_p_name">{{ newsMemberInfo.userName }}</div>
          <img v-show="!$isNull(newsMemberInfo.gender)" class="mem_gender" :src="
                newsMemberInfo.gender == 1
                  ? 'static/image/home/gender_man.png'
                  : 'static/image/home/gender_girl.png'
              " />
        </div>
        <div class="n_m_main">
          <div class="n_m_item">
            <div class="n_m_item_l">部门</div>
            <div class="n_m_item_r">
              {{
                  !$isNull(newsMemberInfo.department)
                    ? newsMemberInfo.department
                    : "--"
                }}
            </div>
          </div>
          <div class="n_m_item">
            <div class="n_m_item_l">职务</div>
            <div class="n_m_item_r">
              {{
                  newsMemberInfo.jobTitle &&
                  newsMemberInfo.jobTitle != "undefined"
                    ? newsMemberInfo.jobTitle
                    : "--"
                }}
            </div>
          </div>
          <div class="n_m_item">
            <div class="n_m_item_l">来源</div>
            <div class="n_m_item_r">
              {{
                  newsMemberInfo.sendName
                    ? newsMemberInfo.sendName + "的分享"
                    : "--"
                }}
            </div>
          </div>
          <div class="n_m_item">
            <div class="n_m_item_l">申请时间</div>
            <div class="n_m_item_r">
              {{ newsMemberInfo.time | timeFormat }}
            </div>
          </div>
          <div class="new_notice_text">
            {{ newsMemberInfo.type == 1 ? "申请加入" : "申请查看"
              }}<span>{{ newsMemberInfo.groupName }}</span>
          </div>
          <div class="news_bottom_wrap" v-if="newsMemberInfo.agreest != 0 && newsMemberInfo.agreest != 1">
            <div class="n_refuse" @click.stop.prevent="addMemberOption(1, newsMemberInfo)">
              拒绝
            </div>
            <div class="n_adopt" @click.stop.prevent="addMemberOption(0, newsMemberInfo)">
              通过
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
           
<script>
export default {
  props: ["newsMemberInfoShow", "newsMemberInfo"],

  methods: {
    addMemberOption(o,t) {
        this.$emit('addMemberOption',o,t)
    },
  },
};
</script>
<style scoped>
</style>